<custom-tag>
  <if(x)>
    <!-- this should not error -->
    <@thing x=1>
      Hello
    </@thing>
  </if>
</custom-tag>